﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using QuanLyKhoDuoc.App_Code.Common.Utils;

namespace QuanLyKhoDuoc.App_Code.Common.Utils
{
    class ResourcesUtils
    {
        /// <summary>
        /// Lấy key của thông báo trong Message
        /// </summary>
        /// <param name="strMessageKey"></param>
        /// <returns></returns>
        public static string GetMessage(string strMessageKey)
        {
            string strRawMessage = Resources.ProjectResources.ResourceManager.GetString(strMessageKey);
            return string.Format(strRawMessage);
        }

        /// <summary>
        /// 
        /// </summary>
        private static string GetConnectionString(string strKey)
        {
            string strConnectionString = Resources.ProjectResources.ResourceManager.GetString(strKey);
            return strConnectionString;
        }
    }
}
